export const rules = {
    //编写手机号登录规则
    email: [
      {
        required: true,
        message: 'QQ邮箱一定要写的',
        trigger: 'blur'
      },
      {
        pattern: /^[a-zA-Z0-9]+([-_.][A-Za-zd]+)*@([a-zA-Z0-9]+[-.])+[A-Za-zd]{2,5}$/,
        message: 'qq邮箱格式不对',
        trigger: 'blur'
      }
    ],
    // code: [
    //   {
    //     required: true,
    //     message: '验证码是必填的',
    //     trigger: 'change'
    //   },
    //   {
    //     pattern: /^[a-z0-9]{6}$/,
    //     message: '验证码要求6个字符',
    //     trigger: 'change'
    //   }
    // ]
  }
  